package com.health.teahouse.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.health.common.annotation.Excel;
import com.health.common.core.domain.BaseEntity;

/**
 * 饮食数据信息对象 diet_data
 * 
 * @author ryang
 * @date 2024-02-11
 */
public class DietData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据ID，自增主键 */
    private Long dataId;

    /** 关联的用户ID */
    @Excel(name = "关联的用户ID")
    private Long userId;
    private String userName;

    @Override
    public String toString() {
        return "DietData{" +
                "dataId=" + dataId +
                ", userId=" + userId +
                ", userName='" + userName + '\'' +
                ", mealDate=" + mealDate +
                ", mealType=" + mealType +
                ", mealDescription='" + mealDescription + '\'' +
                ", quantity='" + quantity + '\'' +
                '}';
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    /** 用餐日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "用餐日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date mealDate;

    /** 餐次类型：早餐、午餐、晚餐 */
    @Excel(name = "餐次类型：早餐、午餐、晚餐")
    private Long mealType;

    /** 餐品描述 */
    @Excel(name = "餐品描述")
    private String mealDescription;

    /** 食用量 */
    @Excel(name = "食用量")
    private String quantity;

    public void setDataId(Long dataId) 
    {
        this.dataId = dataId;
    }

    public Long getDataId() 
    {
        return dataId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setMealDate(Date mealDate) 
    {
        this.mealDate = mealDate;
    }

    public Date getMealDate() 
    {
        return mealDate;
    }
    public void setMealType(Long mealType) 
    {
        this.mealType = mealType;
    }

    public Long getMealType() 
    {
        return mealType;
    }
    public void setMealDescription(String mealDescription) 
    {
        this.mealDescription = mealDescription;
    }

    public String getMealDescription() 
    {
        return mealDescription;
    }
    public void setQuantity(String quantity) 
    {
        this.quantity = quantity;
    }

    public String getQuantity() 
    {
        return quantity;
    }

}
